package com.example.bookshop.service;

import com.example.bookshop.VO.CartItemVO;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;

/**
 * @auth shanyue
 * @date 2025年06月05日15:15
 */
public interface CartService {

    List<CartItemVO> getCartItems(String username);
    BigDecimal getTotalPrice(String username);

    @Transactional
    String addToCart(int bookId, int quantity, String username);

    @Transactional
    String removeFromCart(int cartId, String username);

}
